{% extends "html/html_home.html" %}
{% load html_extras%}
{% block content %}
<style>
body{font-family: Verdana, helvetica, arial, sans-serif;}
td{text-align:center;font-size:13px;}
td.rights {border-bottom:1px solid #000;border-right:1px solid #000;}
td.Normal {background:#00DB00}
td.Down {background:#FF2D2D}
td.Unstable{background:#FFFF6F}
td.Off {background:#ADADAD}
</style>
<div id="imgall" style="float:left;">
<table border="1" cellspacing="0" cellpadding="1">
<tr><th>SN</th><th>titile</th><th>correct config</th><th>default config</th><th>Alarm</th><th>Action</th></tr>
{% for w in widgets%}
	<tr {%if w.ignore%}style="background:#F0E68C;"{%endif%}><td>{{forloop.counter}}</td><td><a href="/admin/servers/widget/{{w.id}}/" target="_blank">{{w.title}}</a></td><td style="width:40%;text-align:left;">{{w.data_def|replaceEnter|safe}}</td><td style="width:40%;text-align:left;">{{w.data_default|replaceEnter|safe}}</td><td>{{w.alarm}}</td><td>
	<form action=""><input type="hidden" name="wid" value="{{w.id}}">{%if w.ignore%}<input type="submit" name="action" value="Resume">{%else%}<input type="submit" name="action" value="Ignore"/>{%endif%}</form></td></tr>
{% endfor %}
</table>
</div>

{% endblock %}
